﻿using System;
using System.Xml.Serialization;

namespace XmlUtility.Model
{
    [Serializable]
    [XmlType(TypeName = "LoginRequestResponse")]
    [XmlRoot(Namespace = "http://smc.huawei.com/", IsNullable =false)]
    public class LoginRequestResponse
    {
        [XmlElement("LoginRequestResult")]
        public RequestResult LoginRequestResult { get; set; }
        [XmlElement("randomSequence")]
        public string Salt { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    [XmlType(TypeName = "LoginRequestResult")]
    public class RequestResult
    {
        /// <summary>
        /// 
        /// </summary>
        [XmlElement("ErrCode")]
        public int Code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [XmlElement("Description")]
        public string Message { get; set; }
    }
}
